const fs = require('fs');

let result = '新创建的文件/写文件';
fs.writeFile('./files/three.txt', 'reslut','utf-8', (err) => {
    console.log(err);   // 错误是显示
})